﻿using DosTexPrj.Core.Models;
using FluentNHibernate.Mapping;

namespace DosTexPrj.Implement.NHibernate.Mapping
{
    public class DeliveryMethodMapping : ClassMap<DeliveryMethod>
    {
        public DeliveryMethodMapping()
        {
            Table("DeliveryMethods");
            Id(x => x.Id, "DeliveryMethodID").UnsavedValue(0).GeneratedBy.Identity();
            Map(x => x.DeliveryMethodName, "DeliveryMethodName").Not.Nullable().Length(100);
        }
    }
}